import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Visitor from '@/views/Visitor'
import Children from '@/views/Children'
import Mechanism from '@/views/Mechanism'
import register from '@/views/register'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/visitor',
      component: Visitor
    },
    {
      path: '/children',
      component: Children
    },
    {
      path: '/mechanism',
      component: Mechanism
    },
    {
      path: '/register',
      component: register
    },
    {
      path: '/childmain',
      component: () => import('@/views/ChildMain')
    },
    {
      path: '/mechanismmain',
      component: () => import('@/views/MechanismMain')
    },
    {
      path: '/medical',
      component: () => import('@/views/Medical')
    },
    {
      path: '/customer',
      component: () => import('@/views/Customer')
    },
    {
      path: '/financial',
      component: () => import('@/views/Financial')
    },
    {
      path: '/market',
      component: () => import('@/views/MedicalSkill')
    },
    {
      path:'/hospital',
      component: () => import('@/views/hospitalindex')
    },
	{
		path:'/updateMedicalskill',
		component:() => import('@/views/UpdateMedicalSkill')
	},
  {
    path:'/medicalskill',
    component:() => import('@/views/MedicalSkill')
  }
  ]
})
